<?php
$db = new SQLite3('/srv/http/php/eportal/data/portaldata.db');
$sql ="DELETE from ep_login_log where login_ip='10.20.1.201' or login_ip='14.145.24.110' ";
$ret = $db->query($sql);

$sql ="SELECT * from ep_login_log where login_ip='192.168.3.198' or login_ip='10.20.1.201' or login_ip='14.145.24.110' ";
$ret = $db->query($sql);

while($row = $ret->fetchArray(SQLITE3_ASSOC) ) {
    echo "ID = ". $row['id'] . "\n";
    echo "NAME = ". $row['username'] ."\n";
    echo "ADDRESS = ". $row['login_ip'] ."\n";
    echo "login_date = ".$row['login_date'] ."\n\n";

    echo "<br>";
}




